
package com.insigma.business.qrcode.soldier.dao;


import com.insigma.business.qrcode.soldier.entity.VenueAppointmentStatisticsDO;
import com.insigma.business.qrcode.soldier.request.VenueAppointmentStatisticsBSearcher;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface VenueAppointmentStatisticsDao {

    
    List<VenueAppointmentStatisticsDO> search(final VenueAppointmentStatisticsBSearcher innerSearcher);

    
    VenueAppointmentStatisticsDO get(final String id);

    
    Integer insert(final VenueAppointmentStatisticsDO venueAppointmentStatisticsDO);

    
    Integer update(final VenueAppointmentStatisticsDO venueAppointmentStatisticsDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    VenueAppointmentStatisticsDO getByAppointScheduleId(@Param("scheduleId")String scheduleId, @Param("appointDate")String appointDate);

    int addUsed(@Param("id")String id, @Param("remainingNum")Integer remainingNum, @Param("appointNum")Integer appointNum);

    int releaseUsed(@Param("id")String id, @Param("remainingNum")Integer remainingNum, @Param("appointNum")Integer appointNum);
}
